package com.inspur.springcloudgateway.fallback;

import com.inspur.springcloudgateway.service.EchoFeignService;

public class EchoFallBack implements EchoFeignService {
    public Throwable throwable;

    public EchoFallBack(Throwable throwable) {
        this.throwable = throwable;
    }

    @Override
    public String hello(String str) {
        return throwable.getMessage();
    }
}
